<!-- 知识库 -->
<script lang="ts" setup>
import NavigationBarAndImg from '@/components/NavigationBarAndImg.vue'
import DataList from '@/components/DataList.vue'
import { useRoute } from 'vue-router'

const route = useRoute()
const pageId = route.query.id
</script>

<template>
  <NavigationBarAndImg></NavigationBarAndImg>
  <div class="navigation">
    当前位置：
    <a href="./HomePage">首页</a>
    >{{ pageId === 'N' ? '新闻资讯' : '知识库' }}
  </div>
  <DataList></DataList>
</template>

<style lang="scss" scoped>
a {
  color: #7e8c8d;
  text-decoration: none;
}
.navigation {
  height: 45px;
  color: #787878;
  font: 15px/45px '';
  padding: 0 12px;
  background-color: #fff;
  border-bottom: rgba(133, 131, 135, 0.5) 0.5px solid;
}
</style>
